<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        /* 让容器宽度和高度都充满全屏 */
        html,
        body {
            width: 430px;
            height: 932px;
        }

        body {
            background-color: pink;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;

        }

        .q1 {
            background-color: red;
            width: 200px;
            height: 200px;
            position: relative;
            transform: rotate(45deg);
            /* 旋转45度 */
            animation: heartbit 1s alternate infinite;
            text-align: center;

        }

        .q1 p {
            transform: rotate(-45deg);
            position: absolute;
            left: 30px;
            top: 40px;
            font-size: 50px;
            color: rgb(217, 15, 224);
        }

        .q1::before {
            content: "";
            width: 200px;
            height: 100px;
            background-color: red;
            position: absolute;
            left: 0%;
            top: -99px;
            border-radius: 100px 100px 0 0;
        }

        .q1::after {
            content: "";
            width: 100px;
            height: 200px;
            background-color: red;
            position: absolute;
            left: -99px;
            top: 0%;
            border-radius: 100px 0 0 100px;
        }

        /* 实现动画，让心动起来 */
        @keyframes heartbit {
            0% {
                transform: rotate(45deg) scale(0.6);

            }

            100% {
                transform: rotate(45deg) scale(1.2);

            }


        }

        /* 文字动画 */
        @keyframes wenzhi {

            0%,
            10%,
            100% {
                filter: blur(0px);
                opacity: 1;
            }

            70%,
            80% {
                filter: blur(80px);
                opacity: 0;
            }
        }

        /* 对文字进行设置staer */

        .q3 {
            animation-delay: -8s;
        }

        .q4 {
            animation-delay: -6s;
        }

        .q5 {
            animation-delay: -4s;
        }

        .q6 {
            animation-delay: -2s;
        }

        /* 对文字进行设置end */
        p {
            position: absolute;

            filter: blur(0px);
            transform: translate(-50%, -50%);
            animation: wenzhi 8s infinite ease-in-out;
        }
    </style>
</head>

<body>
    <div class="q1">
        <div class="q2">
            <p class="q3">星星</p>
            <p class="q4">公主</p>
            <p class="q5">青春</p>
            <p class="q6">永驻</p>
        </div>
    </div>
</body>

</html>